package net.lwf.hibernate.dao.client;

import net.lwf.hibernate.dao.UserDAO;
import net.lwf.hibernate.entity.User;

public class UserClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		UserDAO dao = new UserDAO();
		//dao.saveUser(getUser());
		
		User user = dao.getUser("abe");
		System.out.println("============> Retrieved User: " + user.getFirstName() + " " + user.getLastName());

	}
	
	private static User getUser() {
		User user = new User();
		user.setFirstName("Abraham");
		user.setLastName("Lincloln");
		user.setUserId("abe");
		user.setPassword("pwd123");
		user.setUserType("Student");
		user.setUserStatus("ACTIVE");
		user.setAddress1("123 Moon Light street");
		user.setAddress2("");
		user.setCity("MoonLight");
		user.setState("MOON");
		user.setZip("1111111");
		user.setCountry("CRECENT");
		user.setEmail("narm@moonland.com");
		
		return user;
	}

}
